package com.shu.jdk8;

/**
 * @author ssm
 * @version V1.0
 * @description:
 * @date 2020/6/2 14:50
 */

@FunctionalInterface
public interface Smokeable {

    public abstract int smoking(String name);

    // 默认方法
    default int smoking2(String name){
        System.out.println("--");
        return 1;
    }

    // 静态方法
    static String smoker(String name){
        return name + "抽烟";
    }
}
